<template>
  <div>食品详情</div>
</template>

<script setup>
import { onActivated } from 'vue'
import { useRoute } from 'vue-router'
const route = useRoute()

onActivated(() => {
  console.log(route.params)
})
</script>
